<?php

require_once './FBConnect.php';

if (isset ($_POST['sessionKey'])) {
    $fbconnect = new FBConnect();
    $oauth = $fbconnect->getOAuthFromSession($_POST['sessionKey']);
    echo '<br/>OAuth token for session-key "' . $_POST['sessionKey'] . '" is: ' . $oauth;
}


?>


<form method="POST">
    <br/>Session-key:
    <input type="text" name="sessionKey" id="sessionKey"/>
    <input type="submit"/>
</form>